<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%! import java.text.MessageFormat %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
<title><g:layoutTitle default="tuiter bot" /></title>
<link rel="stylesheet" href="${resource(dir:'css',file:'layout.css')}" />
<link rel="stylesheet"
	href="${resource(dir:'css',file:'css_style.css')}" />
<g:layoutHead />
</head>
<body>
<div class="wrapper">
<div class="login">
<g:if test="${session.user && session.role == 'admin'}">
	<img class="imgProfile"
		src="${createLinkTo(dir: 'images', file: 'admin.png')}"
		alt="administrador icono" />
	<g:message code="welcome.label" />,
					${session.user.screenName} |
          <g:link controller="accountManager" action="logout">
		<g:message code="logout.label" />
	</g:link>
</g:if>
<g:else>
	<g:link controller="accountManager" action="loginAdmin">
		<g:message code="loginAdmin.label" />
	</g:link>
</g:else>
</div>
<div class="header">
<img class="imgHeader" src="${resource(dir:'images',file:'header.png')}"
	alt="header" />
</div>
<div class="menu">
<ul class="menu">
<li class="menu"><g:link controller="accountManager" action="index">
	<g:message code="home.label" />
</g:link></li>
<li class="menu"><g:link controller="accountManager" action="help">
	<g:message code="help.label" />
</g:link></li>
<li class="menu"><g:link controller="accountManager"
	action="contact">
	<g:message code="contact.label" />
</g:link></li>
<g:if test="${session.user && session.role == 'admin'}">
	<li class="menu"><g:link controller="accountManager"
		action="config">
		<g:message code="config.label" />
	</g:link></li>
	<li class="menu"><g:link controller="accountManager"
		action="requestManager">
		<g:message code="requests.label" />
	</g:link></li>
	<li class="menu"><g:link controller="accountManager"
		action="suggestions">
		<g:message code="suggestions.label" />
	</g:link></li>
</g:if>
<g:else>
	<li class="menu"><g:link controller="accountManager"
		action="signUpAdmin">
		<g:message code="signUpAdmin.label" />
	</g:link></li>
</g:else>
</ul>
</div>
<div class="content">
<g:pageProperty name="page.title" default="" />
<g:pageProperty name="page.content2" default="" />
</div>
<div class="push"></div>
</div>
<div class="footer">
<g:message code="footer.label" />
<p>
<a href="http://validator.w3.org/check?uri=referer"><img
	src="http://www.w3.org/Icons/valid-xhtml10"
	alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a> <a
	href="http://jigsaw.w3.org/css-validator/check/referer"> <img
	style="border: 0; width: 88px; height: 31px"
	src="http://jigsaw.w3.org/css-validator/images/vcss" alt="¡CSS Válido!" />
</a>
</p>
</div>
<g:layoutBody />
</body>
<g:if test="${flash.message}">
	<g:javascript>alert("${flash.message}")</g:javascript>
</g:if>
</html>